#include "KeyBoradhandler.h"

KeyBoradhandler::KeyBoradhandler(CKContext* context)
:m_KeyBoardContext(context)
{
	mInputManager = CCustomPlayer::Instance().GetInputManager();
}

KeyBoradhandler::~KeyBoradhandler(void)
{
}

CKBOOL KeyBoradhandler::IsKeyBoardPushDown(CKKEYBOARD keyIndex)
{

	CKDWORD key = 0;
	int keynum = mInputManager->GetNumberOfKeyInBuffer();
	for(int i = 0; i<keynum; i++)
	{
		if(mInputManager->GetKeyFromBuffer(i,key) == KEY_PRESSED)
		{
		case CKKEY_ADD:	
			{
              int a = 0;
			}
			break;
		case CKKEY_SUBTRACT:
			{
              int b = 0;
			}
			break;

		}
	}

	if(m_Key[keyIndex] == FALSE)
		return;

	switch (keyIndex)
	{
	case CKKEY_ADD:	
		{
            
		}
		break;
	case CKKEY_SUBTRACT:
		{

		}
		break;

	}
}
